home *** CD-ROM | disk | FTP | other *** search
/ Gekkan Dennou Club 147 / Gekkan Dennou Club - 2000.8 Vol. 147 (Japan).7z / Gekkan Dennou Club - 2000.8 Vol. 147 (Japan) (Track 1).bin / tools / ask / gmd / source / gmdapic.s < prev    next >
Text File  |  1997-05-11  |  887b  |  30 lines

  1. *--------------------------------------------------------------------
  2. *    GMD API呼びだし for C
  3. *--------------------------------------------------------------------
  4. * 必ず_GMDGetAPIを実行してから呼び出すこと
  5.  
  6.     .include    gmd.mac
  7.     .xref        GMDCallAPI    * API呼びだし
  8.     .text
  9.  
  10. *--------------------------------------------------------------------
  11.  
  12.     .xdef    _GMDCallAPI2    * long GMDCallAPI2(unchar com,long xy,long size)
  13. _GMDCallAPI2:
  14.     move.l    12(sp),d2    * size
  15.     bra.s    _GMDCallAPI1d
  16. *
  17.     .xdef    _GMDCallAPI1a    * long GMDCallAPI1d(unchar com,void *adrs)
  18.     .xdef    _GMDCallAPI1d    * long GMDCallAPI1a(unchar com,long xy)
  19. _GMDCallAPI1a:
  20.     move.l    8(sp),a2    * adrs
  21.     bra.s    @f
  22. _GMDCallAPI1d:
  23.     move.l    8(sp),d1    * xy
  24. @@:    move.b    4+3(sp),d0    * d0.b=コマンド
  25.     jmp    GMDCallAPI    * API呼びだし
  26.                 * 飛び先からrtsする
  27.  
  28. *--------------------------------------------------------------------
  29.     .end
  30.